package com.totem.order.vo;

import com.totem.product.vo.ProductSpecVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class GoodsOrderVO implements Serializable {
    @NotNull
    private Long productId;
    @Schema(description = "币种", example = "USDO,USDT")
    @NotEmpty
    private String currency;
    @NotNull
    private BigDecimal amount;

    private Date orderDate;

    private String orderNo;

    // response
    private String nickname;
    private Long orderId;
    private String paymentState;
    private String paymentTime;
    private String productName;
    @Schema(description = "产品封面图")
    private String coverUrl;
    @Schema(description = "发布人昵称")
    private String createByNickname;
    @Schema(description = "未售出规格中最近的一个")
    private ProductSpecVO productSpecVO;
}
